home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / 01 getting started with net / firstconsoleapp / module1.vb < prev   
Text File  |  2001-09-10  |  332b  |  15 lines

  1. Module Module1
  2.     
  3.     Sub Main()
  4.         Dim username As String
  5.  
  6.         ' Ask for user name.
  7.         Console.Write("Enter your name: ")
  8.         username = Console.ReadLine()
  9.         ' Say hi and tell current time.
  10.         Console.WriteLine("Hello, {0}. Current time is {1}", username, Now)
  11.     End Sub
  12.  
  13.  
  14. End Module
  15.